package com.langsin.zhangruizhi.mapper;

import com.langsin.bean.Goods;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper {
//    按照id查询商品
    @Select("select * from goods where goodsId = #{gid}")
    Goods queryByIdAno(@Param("gid") Integer gid);

    List<Goods> queryByIds(List<Integer> ids);

    /*
    多条件查询
    * */
    List<Goods> queryByCondition(Goods goods);
}
